/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package za.ac.cput.Toto.inheritance_principle.inheritence_model;

/**
 *
 * @author Jeffrey
 */
public class Employee extends Person{

    private long staff_no;
    private double salary;
    private double hourlyRate;

    public double getHourlyRate() {
        return hourlyRate;
    }

    public void setHourlyRate(double hourlyRate) {
        this.hourlyRate = hourlyRate;
    }
    
    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public Employee() {
    }

    public Employee(String name, char gender, long staff_no) {
        super(name, gender);
        this.staff_no = staff_no;
    }

    public long getStaff_no() {
        return staff_no;
    }

    public void setStaff_no(long staff_no) {
        this.staff_no = staff_no;
    }

    public String print()
    {
        return "Name: "+name+"  genger: "+gender+" Staff No: "+staff_no;
    }

}
